import Vue from 'vue'
import Router from 'vue-router'
import detail from '@/page/detail'
import home from '@/page/home'
import login from '@/page/login'
import register from '@/page/register'
import uploadRecipes from '@/page/uploadRecipes'
Vue.use(Router)

export default new Router({
  routes: [
  	{path: "/", redirect: "/home"},
    {path: '/home',name: 'home',component: home},
    {path: '/detail/:id',name: 'detail',component: detail},
    {path: '/login',name: 'login',component: login},
    {path: '/register',name: 'register',component: register},
    {path: '/uploadRecipes',name: 'uploadRecipes',component: uploadRecipes},
  ]
})
